import axios from 'src/util/axios'
const projectLIst = params => axios('post', '/school-payment-sku/find', params)
const deleteProject = params => axios('get', '/school-payment-sku/del', params)
const exportProject = params => axios('get', '/school-payment-sku/export', params)
const addProject = params => axios('post', '/school-payment-sku/create', params)
const updateProject = params => axios('post', '/school-payment-sku/update', params)
const modifyProject = params => axios('get', '/school-payment-sku/get', params)
const gradeList = params => axios('get', '/school-class/find-all-grade-class-list', params)
const schoolGet = params => axios('get', '/school/get', params)
const getPayment = params => axios('get', '/school-payment-sku/statistics-by-status', params)
const paymentPause = params => axios('post', '/school-payment-sku/pause', params)
const getSchoolIndex = params => axios('get', '/school-order/get-count-info', params)
const getStudentsList = params => axios('post', '/school-student/find-all', params)
// 根据缴费项目查询缴费班级信息列表
const getPayList = params => axios('post', '/school-order/get-payment-list-by-class', params)
// 统计信息
const getCountInfo = params => axios('post', '/school-order/get-count-info-by-school-sku', params)

// 减免优惠
// 设置减免项
const setDiscount = params => axios('post', '/school-discount/create', params)
// 更新减免项
const updateDiscount = params => axios('post', '/school-discount/update', params)
// 删除减免项
const deleteDiscount = params => axios('post', '/school-discount/del', params)
// 编辑减免项学生
const editStudentDiscount = params => axios('post', '/school-discount/edit-student', params)
// 根据缴费项目id减免项列表
const getDiscountList = params => axios('get', '/school-discount/find-all-by-sku-id', params)
// 根据discountId获取减免项列表
const getDiscount = params => axios('post', '/school-discount/find-all', params)
// 设置自定义缴费金额
const customDiscount = params => axios('post', '/school-discount/update-student-amount', params)
// 删除自定义缴费金额
const customInfoReset = params => axios('post', '/school-discount/reset-student-amount', params)
export {
  projectLIst,
  deleteProject,
  exportProject,
  addProject,
  updateProject,
  modifyProject,
  gradeList,
  schoolGet,
  getPayment,
  paymentPause,
  getSchoolIndex,
  getPayList,
  getCountInfo,
  getStudentsList,
  setDiscount,
  updateDiscount,
  deleteDiscount,
  editStudentDiscount,
  getDiscountList,
  getDiscount,
  customDiscount,
  customInfoReset
}
